#include "DTD_Mixed.h"
#include "DTD_PCDATA.h"

using namespace std;

DTD_Mixed::DTD_Mixed( DTD_Choix * choix )
{
	contents = new vector<DTD_Contenu *>();

	contents->push_back( new DTD_PCDATA() );
	contents->push_back( choix );
}


string DTD_Mixed::toString()
{
	string R = contents->at(0)->toString();
	for (unsigned int i = 1; i < contents->size(); i++)
	{
		R += " | ";
		R += contents->at(i)->toString();
	}

	return  " ( " + R + " ) " ;
}
